<template>
<div class="add">
 <div class="add-person">
  <el-form ref="form" :model="form" label-width="80px">
  <el-form-item label="所属部门">
    <el-select v-model="form.region" placeholder="选择部门">
    <el-option label="财务部" value="财务部"></el-option>
    <el-option label="移动项目部" value="移动项目部"></el-option>
    <el-option label="PC业务部" value="PC业务部"></el-option>
    <el-option label="华军项目部" value="华军项目部"></el-option>
    <el-option label="pcsoft项目部" value="pcsoft项目部"></el-option>
    <el-option label="总经办" value="总经办"></el-option>
    </el-select>
  </el-form-item>
    <el-form-item label="姓名">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="登录名">
      <el-input v-model="form.username"></el-input>
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="form.password"></el-input>
    </el-form-item>
    <el-form-item label="确认密码">
      <el-input v-model="form.conpassword"></el-input>
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input v-model="form.email"></el-input>
    </el-form-item>
    <el-button type="primary" @click="onSubmit">添加</el-button>
    <el-button>取消</el-button>
    </el-form-item>
  </el-form>
  </div>
</div>
</template>
<script>
  export default {
    data() {
      return {
        form: {
          region: '',
          name: '',
          username: '',
          password: '',
          conpassword:'',
          email:''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
<style>
 .add{
  background:#fff;
  padding:20px;
 }
 .add-person{
  width:600px;
 }
 .el-select{
  width:520px;
 }
</style>
